import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    //树列表
    getClassTreeList: {
        url: '/api/v1/data/b_entity/b_entity_data_tree',
        method: 'get'
    },
    //树-新增
    addClassTree: {
        url: '/api/v1/data/b_entity/entity_data_tree_create',
        method: 'post'
    },
    //树-修改
    modifyClassTree: {
        url: '/api/v1/data/b_entity/entity_data_tree_edit',
        method: 'put'
    },
    //树-删除
    delClassTree: {
        url: '/api/v1/data/b_entity/entity_data_tree_delete',
        method: 'delete'
    },
    //业务实体定义-实体定义列表
    getEntityDataList: {
        url: '/api/v1/data/b_entity/b_entity_list',
        method: 'get'
    },
    //业务实体定义-新增
    addEntityData: {
        url: '/api/v1/data/b_entity/b_entity_create',
        method: 'post'
    },
    //业务实体定义-修改
    editEntityData: {
        url: '/api/v1/data/b_entity/b_entity_edit',
        method: 'put'
    },
    //业务实体定义-删除
    delEntityData: {
        url: '/api/v1/data/b_entity/b_entity_delete',
        method: 'delete'
    },
    //编辑弹框-实体字段删除 /api/v1/data/b_entity/b_entity_field_delete
    delEntityField: {
        url: '/api/v1/data/b_entity/b_entity_field_delete',
        method: 'delete'
    }
}

export default openBuildService(settings)